<%@ tag language="java" pageEncoding="ISO-8859-1" import="java.util.*, dk.bris.webdev.*"%>
<%@ variable name-given="item"%>
<%@ variable name-given="amount"%>

<%
	Vector<CartEntry> cart = (Vector<CartEntry>)session.getAttribute("cart");
	for(int i = 0; i < cart.size(); i++) {
		jspContext.setAttribute("item", cart.get(i).getName());
		jspContext.setAttribute("amount", ""+cart.get(i).getAmount());
		%><jsp:doBody/><%
	}	
%>